﻿@model List<GregsList.Models.Post>
@{
    ViewBag.Title = "Home Page";
}

<h1 class="jumbotron">Welcome To Greg's List</h1>

<table class="table table-hover">
    <tr>
        <th>Category</th>
        <th>Title</th>
        <th>Date Posted</th>
    </tr>

    @foreach (var Post in Model)
    {
        <tr onclick="alert('testing alert: Post ID: '+ @Post.PostID)">
            <td>@Post.Category</td>
            <td>@Post.Title</td>
            <td>@Post.PostTime</td>
        </tr>
    }
</table>